package com.feihao.zhou.mapper;

import com.feihao.zhou.bean.Student;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StudentMapper {

    //根据查询到cid  来查询班级对应的学生：

    @Select("select * from student where cid=#{88588858}")
        // 只有一个参数时，可随意命名
    List<Student> selectAllStudentById();


    //单表查询
    @Select("select * from student")
    List<Student> selectAllStudent();
}
